package collection;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo2 {
	public static void main(String[] args) {
		Map<String, Object> map = new HashMap<>();
		map.put("姓名", "孙悟空");
		map.put("年龄", 23);
		map.put("电话", "1388888888");
		System.out.println(map.get("年龄"));
		Set<String> keys=map.keySet();
		for(String s:keys){
			System.out.println(s+":"+map.get(s));
		}
	}
}
